package com.topnav.mc.document.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.topnav.mc.admin.entity.GbServer;
import com.topnav.mc.entity.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 文档数据
 */
@Data
@TableName("mc_document")
public class Document extends BaseEntity {
    private static final long serialVersionUID = -269706377591217690L;

    private String docName;

    /** 文件类型，1视频，2音频，3图片，4其它*/
    private Integer fileType; //EnumDocType
    /** byte */
    private Long fileSize;
    /** 1 普通，2重要，3特别重要 */
    private Integer importance; //EnumDocImportance
    /** 路径 */
    private String docUri;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date startTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date endTime;
    /** 时长 毫秒 */
    private Long duration;

    private Long siteId;
    private Long orgId;
    private Long userId;
    private Long deviceId;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date uploadTime;
    //@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date expireTime;

    /** 标注 */
    private String remark;
    /** 清淅度 1标清，2高清，3超清*/
    private Integer clarity;
    /** 视频长和宽*/
    private Integer frameWidth;
    private Integer frameHeight;
    private String docNo;
    /** hash 码 */
    private String hashCode;
    /** 子平台 key */
    private String docKey;

    private Boolean deleteFlag=false;

/*    @TableField(exist=false)
    private String siteName;
    @TableField(exist=false)
    private String userName;
    @TableField(exist=false)
    private String orgName;
    @TableField(exist=false)
    private String deviceName;*/

/*    @TableField(exist=false)
    private String playUrl;*/
    /**
     * 查询条件字段
     */

}
